<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <script type="text/javascript" src="jquery-1.8.2.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
		$("#reCheckBtn").click(function() {
			var password = $("#qnaPassword").val();
			if(password==""){
				alert("비밀번호 입력하시고 답글 입력하세요");
				return false;
			}
			$("#re_form").submit();
			
		})//reCheckBtn 클릭
	})//document.ready
    </script>
QnA Re Write page


<form action="qna.do" method="post" name="re_form" id="re_form">
	<input type="hidden" id="command" name="command" value="qnaReWrite">
	<input type="hidden" id="qnaRef" name="qnaRef" value="${requestScope.qnABoardVO.qnaNo }">
	<input type="hidden" id="page" name="page" value="${requestScope.page }">
	<table>
		<tr>		
			<td>제목 : <input type="text" id="qnaTitle" name="qnaTitle"
				maxlength="100" size="30" value="RE : ${requestScope.qnABoardVO.qnaTitle }"></td>
				<td>비밀번호 : <input type="password" id="qnaPassword"
				name="qnaPassword" maxlength="50" size="10" value="${requestScope.qnABoardVO.qnaPassword }" readonly="readonly"></td>
		</tr>
		<tr>
		
		<td><textarea cols="40" rows="10"  id="qnaContent"  name="qnaContent">${requestScope.qnABoardVO.qnaContent }
<br>=============답변==============<br>
</textarea></td>
		
		</tr>
	</table>
	<table>
		<tr>
			<td>
			<img src="${initParam.root }/img/re_btn.gif" align="right" id="reCheckBtn">
			</td>
		
		</tr>
	</table>
</form>